import axios from "axios";
import { API_NAME } from "./contants.ts";

const loginAPI = (id: number, password: string) => {
  return axios.post(`${API_NAME}/user/login`, {
    id,
    password,
  });
};

const getAllGradeAPI = () => {
  return axios.get(`${API_NAME}/user/grade/all`);
};

const logoutAPI = () => {
  return axios.post(`${API_NAME}/user/logout`);
};

export { loginAPI, getAllGradeAPI, logoutAPI };
